#!/bin/sh
# Build external-modules.c.

target="$1"
shift

(
	cat <<!

!
	for i in "$@"; do
		cat <<!
extern void	$i(void);
!
	done
	cat <<!

void s48_initialize_external_modules (void) {
!
	for i in "$@"; do
		cat <<!
			$i();
!
	done
	cat <<!
		}
!
) >"$target"
